//
//  AddressModel.m
//  LvXi_newVersion
//
//  Created by 王敏 on 16/9/23.
//  Copyright © 2016年 SJT. All rights reserved.
//

#import "AddressModel.h"

@implementation AddressModel
-(BOOL)fillComplete{
    NSArray * ps = [[self class] wmproperties];
    BOOL isfill = YES;
    for (NSString * p in ps) {
        NSString * v = [self valueForKey:p];
        if(![p isEqualToString:@"addr_id"]){
            if(v == nil||v.length==0){
                isfill = NO;
            }
        }
    }
    return isfill;
}

-(id)init{
    if(self = [super init]){
     self.def_addr =  @"0";
    }
    return self;
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
@end
